//
//  ShopListViewContrller.h
//  uneed
//
//  Created by apple on 4/11/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#define API_GetShopLists  @"100"

#import <UIKit/UIKit.h>

#import "IconDownloader.h"
#import "Shop.h"
#import "ShopAddViewCtrl.h"
#import "BasicTableViewCtrl.h"
#import "LoginViewController.h"
#import "howcanApi2Get.h"
#import "EGORefreshTableHeaderView.h"
#import "LoadingMoreFooterView.h"


@class LoginViewController;

#define act_shopadd 1


@interface ShopListViewContrller : BasicTableViewCtrl <IconDownloaderDelegate,EGORefreshTableHeaderDelegate> {
   
    EGORefreshTableHeaderView *_refreshHeaderView;
	BOOL _reloading;
    
    LoadingMoreFooterView *_loadFooterView; 
    BOOL _loadingmore;
    
    NSMutableArray *shoplists;
	NSMutableDictionary *shopClasses;
	
	IBOutlet UILabel *shopName;  
    IBOutlet UILabel *shopSubName;  
	IBOutlet UIImageView *shopImage;
	IBOutlet UILabel *distance;
	BOOL useDarkBackground;
	UITableViewCell *tvCell;
	int currentPage;
	BOOL page_isend;
	int act_no;
	NSMutableDictionary *api2gets;
	
	int api_count;
	
}

@property(nonatomic,retain) LoadingMoreFooterView *loadFooterView;

@property(nonatomic,retain) NSMutableDictionary *api2gets;
@property(nonatomic,retain) UILabel *shopName;
@property(nonatomic,retain) UILabel *shopSubName;
@property (nonatomic,retain) UIImageView *shopImage;
@property(nonatomic,retain) UILabel *distance;

@property(nonatomic,retain) NSMutableArray *shoplists;
@property (nonatomic, retain) NSMutableDictionary *shopClasses;

@property(nonatomic,retain)IBOutlet UITableViewCell *tvCell;
@property BOOL useDarkBackground;

- (void)actShopAdd;

/*数据下载完毕 */
-(void)  completedCallback:(NSArray*) data;


- (void)reloadTableViewDataSource;
- (void)doneLoadingTableViewData;

@end
